package com.hopu.mapper;


import com.hopu.pojo.Sort;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Repository
public interface SortMapper {

    List<Sort> findAllSort();

    Sort findSortByNameOrId(@Param("sname") String sname, @Param("sid") Integer sid);

    boolean addSort(@Param("sname") String sname);

    boolean uppSort(@Param("sid") Integer sid, @Param("sname") String sname);

    List<Sort> findAllName();

}
